package com.tbit.uqbike.webmanager.dao.log;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.tbit.config.datasource.DataSource;
import com.tbit.uqbike.object.pojo.RefundOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 退款订单dao
 * @author Zhang Zhi Liang
 * @since  2024/3/28 15:57
 */
@DS(DataSource.LOG)
public interface RefundOrderDao {

    /**
     * 根据退款对象id获取
     */
    RefundOrder getByRefundNo(String refundNo);

    List<RefundOrder> getByBusinessNo(String businessNo);

    List<RefundOrder> getByBusinessNoList(@Param("orderNumList") List<String> orderNumList);

    /**
     * 添加
     * @param entities
     */
    void insertBatch(@Param("entities") List<RefundOrder> entities);

    int deleteByBusinessNos(@Param("businessNos") List<String> businessNos);
}
